home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Doc / Reference / Appendix-A.tex / node2_ct.html < prev    next >
LaTeX Document  |  1996-01-21  |  2.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: node2_ct.html

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 41 73 | 73 6f 63 69 61 74 69 6e |ts of As|sociatin|
|000000b0| 67 20 43 61 6c 6c 62 61 | 63 6b 73 20 74 6f 20 54 |g Callba|cks to T|
|000000c0| 6b 2d 63 6f 6d 6d 61 6e | 64 73 3c 2f 54 49 54 4c |k-comman|ds</TITL|
|000000d0| 45 3e 0a 0a 3c 4d 45 54 | 41 20 48 54 54 50 2d 45 |E>..<MET|A HTTP-E|
|000000e0| 51 55 49 56 3d 22 43 6f | 6e 74 65 6e 74 2d 54 79 |QUIV="Co|ntent-Ty|
|000000f0| 70 65 22 20 43 4f 4e 54 | 45 4e 54 3d 22 74 65 78 |pe" CONT|ENT="tex|
|00000100| 74 2f 68 74 6d 6c 3b 20 | 63 68 61 72 73 65 74 3d |t/html; |charset=|
|00000110| 75 74 66 2d 38 22 3e 0a | 3c 4d 45 54 41 20 4e 41 |utf-8">.|<META NA|
|00000120| 4d 45 3d 22 76 69 65 77 | 70 6f 72 74 22 20 43 4f |ME="view|port" CO|
|00000130| 4e 54 45 4e 54 3d 22 77 | 69 64 74 68 3d 64 65 76 |NTENT="w|idth=dev|
|00000140| 69 63 65 2d 77 69 64 74 | 68 2c 20 69 6e 69 74 69 |ice-widt|h, initi|
|00000150| 61 6c 2d 73 63 61 6c 65 | 3d 31 2e 30 22 3e 0a 3c |al-scale|=1.0">.<|
|00000160| 4d 45 54 41 20 4e 41 4d | 45 3d 22 47 65 6e 65 72 |META NAM|E="Gener|
|00000170| 61 74 6f 72 22 20 43 4f | 4e 54 45 4e 54 3d 22 4c |ator" CO|NTENT="L|
|00000180| 61 54 65 58 32 48 54 4d | 4c 20 76 32 30 32 32 22 |aTeX2HTM|L v2022"|
|00000190| 3e 0a 0a 3c 4c 49 4e 4b | 20 52 45 4c 3d 22 53 54 |>..<LINK| REL="ST|
|000001a0| 59 4c 45 53 48 45 45 54 | 22 20 48 52 45 46 3d 22 |YLESHEET|" HREF="|
|000001b0| 41 70 70 65 6e 64 69 78 | 2d 41 2e 63 73 73 22 3e |Appendix|-A.css">|
|000001c0| 0a 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 6e 65 78 |..<LINK |REL="nex|
|000001d0| 74 22 20 48 52 45 46 3d | 22 6e 6f 64 65 34 5f 6d |t" HREF=|"node4_m|
|000001e0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|000001f0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|00000200| 45 46 3d 22 6e 6f 64 65 | 31 5f 6d 6e 2e 68 74 6d |EF="node|1_mn.htm|
|00000210| 6c 22 3e 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 75 |l">.<LIN|K REL="u|
|00000220| 70 22 20 48 52 45 46 3d | 22 41 70 70 65 6e 64 69 |p" HREF=|"Appendi|
|00000230| 78 2d 41 5f 6d 6e 2e 68 | 74 6d 6c 22 3e 0a 3c 4c |x-A_mn.h|tml">.<L|
|00000240| 49 4e 4b 20 52 45 4c 3d | 22 6e 65 78 74 22 20 48 |INK REL=|"next" H|
|00000250| 52 45 46 3d 22 6e 6f 64 | 65 33 5f 6d 6e 2e 68 74 |REF="nod|e3_mn.ht|
|00000260| 6d 6c 22 3e 0a 3c 2f 48 | 45 41 44 3e 0a 20 0a 3c |ml">.</H|EAD>. .<|
|00000270| 42 4f 44 59 20 62 67 63 | 6f 6c 6f 72 3d 22 23 66 |BODY bgc|olor="#f|
|00000280| 66 66 66 66 66 22 20 74 | 65 78 74 3d 22 23 30 30 |fffff" t|ext="#00|
|00000290| 30 30 30 30 22 20 6c 69 | 6e 6b 3d 22 23 39 39 34 |0000" li|nk="#994|
|000002a0| 34 45 45 22 20 76 6c 69 | 6e 6b 3d 22 23 30 30 30 |4EE" vli|nk="#000|
|000002b0| 30 66 66 22 20 61 6c 69 | 6e 6b 3d 22 23 30 30 66 |0ff" ali|nk="#00f|
|000002c0| 66 30 30 22 3e 0a 0a 3c | 48 31 3e 3c 41 20 49 44 |f00">..<|H1><A ID|
|000002d0| 3d 22 53 45 43 54 49 4f | 4e 30 30 30 32 30 30 30 |="SECTIO|N0002000|
|000002e0| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 22 3e 0a |00000000|00000">.|
|000002f0| 41 73 73 6f 63 69 61 74 | 69 6e 67 20 43 61 6c 6c |Associat|ing Call|
|00000300| 62 61 63 6b 73 20 74 6f | 20 54 6b 2d 63 6f 6d 6d |backs to| Tk-comm|
|00000310| 61 6e 64 73 3c 2f 41 3e | 0a 3c 2f 48 31 3e 0a 0a |ands</A>|.</H1>..|
|00000320| 3c 50 3e 0a 53 74 61 72 | 74 69 6e 67 20 77 69 74 |<P>.Star|ting wit|
|00000330| 68 20 76 65 72 73 69 6f | 6e 20 33 2e 30 2c 20 20 |h versio|n 3.0, |
|00000340| 63 61 6c 6c 62 61 63 6b | 73 20 61 72 65 20 53 63 |callback|s are Sc|
|00000350| 68 65 6d 65 0a 63 6c 6f | 73 75 72 65 73 3c 41 20 |heme.clo|sures<A |
|00000360| 4e 41 4d 45 3d 22 74 65 | 78 32 68 74 6d 6c 31 22 |NAME="te|x2html1"|
|00000370| 20 48 52 45 46 3d 22 66 | 6f 6f 74 6e 6f 64 65 5f | HREF="f|ootnode_|
|00000380| 6d 6e 2e 68 74 6d 6c 23 | 66 6f 6f 74 33 37 22 20 |mn.html#|foot37" |
|00000390| 54 41 52 47 45 54 3d 22 | 66 6f 6f 74 65 72 22 3e |TARGET="|footer">|
|000003a0| 3c 53 55 50 3e 3c 49 4d | 47 20 20 41 4c 54 3d 22 |<SUP><IM|G ALT="|
|000003b0| 5b 2a 5d 22 20 53 52 43 | 3d 22 66 6f 6f 74 6e 6f |[*]" SRC|="footno|
|000003c0| 74 65 2e 70 6e 67 22 3e | 3c 2f 53 55 50 3e 3c 2f |te.png">|</SUP></|
|000003d0| 41 3e 2e 20 41 70 61 72 | 74 20 73 63 72 6f 6c 6c |A>. Apar|t scroll|
|000003e0| 20 63 6f 6d 6d 61 6e 64 | 73 2c 20 63 61 6c 6c 62 | command|s, callb|
|000003f0| 61 63 6b 73 20 61 72 65 | 20 0a 53 63 68 65 6d 65 |acks are| .Scheme|
|00000400| 73 20 70 72 6f 63 65 64 | 75 72 65 73 20 77 69 74 |s proced|ures wit|
|00000410| 68 6f 75 74 20 70 61 72 | 61 6d 65 74 65 72 2e 20 |hout par|ameter. |
|00000420| 53 75 70 70 6f 73 65 20 | 66 6f 72 20 65 78 61 6d |Suppose |for exam|
|00000430| 70 6c 65 2c 20 74 68 61 | 74 20 77 65 20 77 61 6e |ple, tha|t we wan|
|00000440| 74 20 74 6f 0a 61 73 73 | 6f 63 69 61 74 65 20 61 |t to.ass|ociate a|
|00000450| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 74 68 20 74 68 | command| with th|
|00000460| 65 20 70 72 65 76 69 6f | 75 73 20 3c 54 54 3e 2e |e previo|us <TT>.|
|00000470| 68 65 6c 6c 6f 3c 2f 54 | 54 3e 20 62 75 74 74 6f |hello</T|T> butto|
|00000480| 6e 2e 20 49 6e 0a 54 63 | 6c 2c 20 73 75 63 68 20 |n. In.Tc|l, such |
|00000490| 61 20 63 6f 6d 6d 61 6e | 64 20 63 61 6e 20 62 65 |a comman|d can be|
|000004a0| 20 65 78 70 72 65 73 73 | 65 64 20 61 73 0a 3c 42 | express|ed as.<B|
|000004b0| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|000004c0| 22 68 65 69 67 68 74 3a | 20 32 2e 33 38 65 78 3b |"height:| 2.38ex;|
|000004d0| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|000004e0| 20 31 37 36 2e 32 37 65 | 78 3b 20 22 20 53 52 43 | 176.27e|x; " SRC|
|000004f0| 3d 22 69 6d 67 37 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img7.p|ng". ALT|
|00000500| 3d 22 5c 62 65 67 69 6e | 7b 73 63 68 65 6d 65 7d |="\begin|{scheme}|
|00000510| 0a 2e 68 65 6c 6c 6f 20 | 63 6f 6e 66 69 67 75 72 |..hello |configur|
|00000520| 65 20 2d 63 6f 6d 6d 61 | 6e 64 20 5c 7b 70 75 74 |e -comma|nd \{put|
|00000530| 73 20 73 74 64 6f 75 74 | 20 27 27 48 65 6c 6c 6f |s stdout| ''Hello|
|00000540| 2c 20 77 6f 72 6c 64 27 | 27 3b 20 64 65 73 74 72 |, world'|'; destr|
|00000550| 6f 79 20 2e 5c 7d 0a 5c | 65 6e 64 7b 73 63 68 65 |oy .\}.\|end{sche|
|00000560| 6d 65 7d 22 3e 0a 3c 42 | 52 3e 0a 49 6e 20 2c 20 |me}">.<B|R>.In , |
|00000570| 77 65 20 63 61 6e 20 77 | 72 69 74 65 0a 3c 42 52 |we can w|rite.<BR|
|00000580| 3e 0a 3c 49 4d 47 0a 20 | 20 53 54 59 4c 45 3d 22 |>.<IMG. | STYLE="|
|00000590| 68 65 69 67 68 74 3a 20 | 32 2e 33 38 65 78 3b 20 |height: |2.38ex; |
|000005a0| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|000005b0| 31 37 36 2e 32 37 65 78 | 3b 20 22 20 53 52 43 3d |176.27ex|; " SRC=|
|000005c0| 22 69 6d 67 38 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img8.pn|g". ALT=|
|000005d0| 22 5c 62 65 67 69 6e 7b | 73 63 68 65 6d 65 7d 0a |"\begin{|scheme}.|
|000005e0| 28 2e 68 65 6c 6c 6f 20 | 27 63 6f 6e 66 69 67 75 |(.hello |'configu|
|000005f0| 72 65 7b 5c 62 66 20 3a | 63 6f 6d 6d 61 6e 64 7d |re{\bf :|command}|
|00000600| 20 28 6c 61 6d 62 64 61 | 20 28 29 0a 28 64 69 73 | (lambda| ().(dis|
|00000610| 70 6c 61 79 20 27 27 48 | 65 6c 6c 6f 2c 20 77 6f |play ''H|ello, wo|
|00000620| 72 6c 64 5c 62 61 63 6b | 77 68 61 63 6b 7b 7d 6e |rld\back|whack{}n|
|00000630| 27 27 29 0a 28 64 65 73 | 74 72 6f 79 20 2a 72 6f |'').(des|troy *ro|
|00000640| 6f 74 2a 29 29 29 0a 5c | 65 6e 64 7b 73 63 68 65 |ot*))).\|end{sche|
|00000650| 6d 65 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |me}">.<B|R>..<P>.|
|00000660| 57 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 77 69 |When the| user wi|
|00000670| 6c 6c 20 70 72 65 73 73 | 20 74 68 65 20 6d 6f 75 |ll press| the mou|
|00000680| 73 65 20 6c 65 66 74 20 | 62 75 74 74 6f 6e 2c 20 |se left |button, |
|00000690| 74 68 65 20 63 6c 6f 73 | 75 72 65 20 61 73 73 6f |the clos|ure asso|
|000006a0| 63 69 61 74 65 64 0a 74 | 6f 20 74 68 65 20 3c 54 |ciated.t|o the <T|
|000006b0| 54 3e 3a 63 6f 6d 6d 61 | 6e 64 3c 2f 54 54 3e 20 |T>:comma|nd</TT> |
|000006c0| 6f 70 74 69 6f 6e 20 77 | 69 6c 6c 20 62 65 20 65 |option w|ill be e|
|000006d0| 76 61 6c 75 61 74 65 64 | 20 69 6e 20 74 68 65 20 |valuated| in the |
|000006e0| 67 6c 6f 62 61 6c 0a 65 | 6e 76 69 72 6f 6e 6d 65 |global.e|nvironme|
|000006f0| 6e 74 2e 20 20 45 76 61 | 6c 75 61 74 69 6f 6e 20 |nt. Eva|luation |
|00000700| 6f 66 20 74 68 65 20 67 | 69 76 65 6e 20 63 6c 6f |of the g|iven clo|
|00000710| 73 75 72 65 20 77 69 6c | 6c 20 64 69 73 70 6c 61 |sure wil|l displa|
|00000720| 79 20 74 68 65 20 6d 65 | 73 73 61 67 65 0a 61 6e |y the me|ssage.an|
|00000730| 64 20 63 61 6c 6c 20 74 | 68 65 20 3c 54 54 3e 64 |d call t|he <TT>d|
|00000740| 65 73 74 72 6f 79 3c 2f | 54 54 3e 20 3c 45 4d 3e |estroy</|TT> <EM>|
|00000750| 54 6b 2d 63 6f 6d 6d 61 | 6e 64 3c 2f 45 4d 3e 2e |Tk-comma|nd</EM>.|
|00000760| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 41 20 49 44 |..<P>.<B|R>.<A ID|
|00000770| 3d 22 72 6f 6f 74 5f 77 | 69 6e 64 6f 77 22 3e 3c |="root_w|indow"><|
|00000780| 2f 41 3e 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |/A><IMG.| STYLE=|
|00000790| 22 68 65 69 67 68 74 3a | 20 32 2e 33 38 65 78 3b |"height:| 2.38ex;|
|000007a0| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|000007b0| 20 31 37 36 2e 34 30 65 | 78 3b 20 22 20 53 52 43 | 176.40e|x; " SRC|
|000007c0| 3d 22 69 6d 67 39 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img9.p|ng". ALT|
|000007d0| 3d 22 5c 62 65 67 69 6e | 7b 6e 6f 74 65 7d 0a 5c |="\begin|{note}.\|
|000007e0| 6d 61 69 6e 69 6e 64 65 | 78 7b 72 6f 6f 74 20 77 |maininde|x{root w|
|000007f0| 69 6e 64 6f 77 7d 0a 54 | 68 65 20 72 6f 6f 74 20 |indow}.T|he root |
|00000800| 77 69 64 67 65 74 20 69 | 73 20 64 65 6e 6f 74 65 |widget i|s denote|
|00000810| 64 20 5c 6c 71 5c 6c 71 | 20 2e 27 27 20 69 6e 20 |d \lq\lq| .'' in |
|00000820| 54 63 6c 2e 20 54 68 2e | 2e 2e 0a 2e 2e 2e 65 7b |Tcl. Th.|......e{|
|00000830| 2a 72 6f 6f 74 2a 7d 20 | 68 61 73 20 62 65 65 6e |*root*} |has been|
|00000840| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 69 6e 0a 7b | introdu|ced in.{|
|00000850| 5c 73 74 6b 7d 20 74 6f | 20 64 65 6e 6f 74 65 20 |\stk} to| denote |
|00000860| 74 68 65 20 54 6b 20 6d | 61 69 6e 20 77 69 6e 64 |the Tk m|ain wind|
|00000870| 6f 77 2e 0a 5c 65 6e 64 | 7b 6e 6f 74 65 7d 22 3e |ow..\end|{note}">|
|00000880| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 3c |.<BR>..<|P>.<BR><|
|00000890| 48 52 3e 0a 3c 21 2d 2d | 54 61 62 6c 65 20 6f 66 |HR>.<!--|Table of|
|000008a0| 20 43 68 69 6c 64 2d 4c | 69 6e 6b 73 2d 2d 3e 0a | Child-L|inks-->.|
|000008b0| 3c 41 20 49 44 3d 22 43 | 48 49 4c 44 5f 4c 49 4e |<A ID="C|HILD_LIN|
|000008c0| 4b 53 22 3e 3c 53 54 52 | 4f 4e 47 3e 53 75 62 73 |KS"><STR|ONG>Subs|
|000008d0| 65 63 74 69 6f 6e 73 3c | 2f 53 54 52 4f 4e 47 3e |ections<|/STRONG>|
|000008e0| 3c 2f 41 3e 0a 0a 3c 55 | 4c 3e 0a 3c 4c 49 3e 3c |</A>..<U|L>.<LI><|
|000008f0| 41 20 4e 41 4d 45 3d 22 | 74 65 78 32 68 74 6d 6c |A NAME="|tex2html|
|00000900| 39 22 20 48 52 45 46 3d | 22 6e 6f 64 65 33 5f 63 |9" HREF=|"node3_c|
|00000910| 74 2e 68 74 6d 6c 22 20 | 54 41 52 47 45 54 3d 22 |t.html" |TARGET="|
|00000920| 63 6f 6e 74 65 6e 74 73 | 22 3e 3c 53 4d 41 4c 4c |contents|"><SMALL|
|00000930| 3e 4d 61 6e 61 67 69 6e | 67 20 57 69 64 67 65 74 |>Managin|g Widget|
|00000940| 20 53 63 72 6f 6c 6c 62 | 61 72 73 3c 2f 53 4d 41 | Scrollb|ars</SMA|
|00000950| 4c 4c 3e 3c 2f 41 3e 0a | 3c 2f 55 4c 3e 0a 3c 21 |LL></A>.|</UL>.<!|
|00000960| 2d 2d 45 6e 64 20 6f 66 | 20 54 61 62 6c 65 20 6f |--End of| Table o|
|00000970| 66 20 43 68 69 6c 64 2d | 4c 69 6e 6b 73 2d 2d 3e |f Child-|Links-->|
|00000980| 0a 0a 3c 48 52 3e 0a 0a | 3c 2f 42 4f 44 59 3e 0a |..<HR>..|</BODY>.|
|00000990| 3c 2f 48 54 4d 4c 3e 0a | |</HTML>.| |
+--------+-------------------------+-------------------------+--------+--------+